$OpenBSD: patch-qt_mkspecs_openbsd-g++_qmake_conf,v 1.1 2017/03/02 10:12:02 sthen Exp $
--- qt/mkspecs/openbsd-g++/qmake.conf.orig	Tue May 10 09:19:52 2016
+++ qt/mkspecs/openbsd-g++/qmake.conf	Wed Mar  1 12:07:44 2017
@@ -8,7 +8,7 @@ TEMPLATE		= app
 CONFIG			+= qt warn_on release link_prl gdb_dwarf_index
 QT			+= core gui
 
-QMAKE_CC		= gcc
+QMAKE_CC		= ${PORTS_CC}
 QMAKE_LEX		= flex
 QMAKE_LEXFLAGS		=
 QMAKE_YACC		= yacc
@@ -24,7 +24,7 @@ QMAKE_CFLAGS_STATIC_LIB	= $$QMAKE_CFLAGS_SHLIB
 QMAKE_CFLAGS_YACC	= -Wno-unused -Wno-parentheses
 QMAKE_CFLAGS_THREAD	= -pthread
 
-QMAKE_CXX		= g++
+QMAKE_CXX		= ${PORTS_CXX}
 QMAKE_CXXFLAGS		= $$QMAKE_CFLAGS
 QMAKE_CXXFLAGS_DEPS	= $$QMAKE_CFLAGS_DEPS
 QMAKE_CXXFLAGS_WARN_ON	= $$QMAKE_CFLAGS_WARN_ON
@@ -45,10 +45,10 @@ QMAKE_LIBDIR_QT		= $$[QT_INSTALL_LIBS]
 QMAKE_INCDIR_OPENGL	= /usr/X11R6/include
 QMAKE_LIBDIR_OPENGL	= /usr/X11R6/lib
 
-QMAKE_LINK		= g++
-QMAKE_LINK_SHLIB	= g++
-QMAKE_LINK_C		= gcc
-QMAKE_LINK_C_SHLIB	= gcc
+QMAKE_LINK		= $$QMAKE_CXX
+QMAKE_LINK_SHLIB	= $$QMAKE_CXX
+QMAKE_LINK_C		= $$QMAKE_CC
+QMAKE_LINK_C_SHLIB	= $$QMAKE_CC
 QMAKE_LINK_SHLIB_CMD	= $$QMAKE_LINK_SHLIB $(LFLAGS) \
 	$$QMAKE_CFLAGS_SHLIB $$QMAKE_LFLAGS \
 	-o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS)
